Only wait for JavaScript that is running ~now#985
Conversation
|
I see in the Javadoc that there is a warning:
I think that is a risk worth accepting in this case. If the API changes significantly in the future, we can always fall back to the previous implementation. |
|
The API was created for us anyway and we call other HTMLUnit APIs like this IIRC. |
|
@MarkEWaite, @timja lets do it the other way around, will improve the docu a bit and remove the experimental flag. As it seems to work it should not be experimetal any longer. |
|
@MarkEWaite, @timja 4.16.0 is out, the methods are no longer experimental |
Thanks! The 4.16.0 release has been merged into Jenkins test harness htmlunit with: |
Avoids sitting and waiting for 10s on pages that constantly run JavaScript, e.g. widgets.
Fixes #946
Testing done
Ran
hudson.model.DirectoryBrowserSupportTest#symlink_outsideWorkspace_areNotAllowedWent from 38s to 8s
Tested incremental on a core build - jenkinsci/jenkins#10764 - Save an hour or so of test execution time.
Submitter checklist